<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/wslds-tags" prefix="lds"%>
<lds:html>
<lds:head>
	<title>修改类型 - ${instance.name }</title>
</lds:head>
<lds:body>
	<div class="content_block">
		<div class="content_title">类型</div>
		<div class="clear"></div>
		<div class="content_content">
			<form action="update.action" method="post" id="artForm">
				<input type="hidden" name="instance.id" value="${ instance.id }" />
				<div class="content_row">
					<div class="title">类型名称</div>
					<div class="data">
						<input type="text" name="instance.name" value="${ instance.name }" /> &nbsp;
					</div>
					<div class="tip" id="tip"></div>
				</div>
				<div class="content_row">
					<div class="title">父节点</div>
					<div class="data">
						<select name="instance.parId">
							<option value="0">根节点</option>
							<c:forEach var="type_" items="${ typeList }">
								<c:choose>
									<c:when test="${ type_.id eq instance.parId }">
										<option value="${ type_.id }" selected>${ type_.name }</option>
									</c:when>
									<c:otherwise>
										<option value="${ type_.id }">${ type_.name }</option>
									</c:otherwise>
								</c:choose>
							</c:forEach>
						</select> &nbsp;
					</div>
					<div class="tip" id="tip"></div>
				</div>
				<div>
					<input type="button" value="提交" id="choose" /> <input type="button" value="取消" id="cancel" />
				</div>
			</form>
		</div>
		<div class="clear"></div>
	</div>
</lds:body>
</lds:html>
